#include<iostream>
using namespace std;
class date 
{
  public:
    date(int day=1,int month=1,int year=2023)
    {
      _day=day;
      _month=month;
      _year=year;
    }
    void print(date* const this)
    {
      cout<<this->_year<<"-"<<this->_month<<"-"<<this->_day<<endl;
    }
  private:
    int _day;
    int _month;
    int _year;
};
int main()
{
  date a;
  date b;
  a.print(&a);
  b.print(&b);
  return 0;
}
